import request from '@/utils/request'

// 查询优惠券套餐列表
export function listPlatformCoupon(query) {
  return request({
    url: '/merchant/platformCoupon/list',
    method: 'get',
    params: query
  })
}

// 查询优惠券套餐详细
export function getPlatformCoupon(id) {
  return request({
    url: '/merchant/platformCoupon/' + id,
    method: 'get'
  })
}

// 新增优惠券套餐
export function addPlatformCoupon(data) {
  return request({
    url: '/merchant/platformCoupon',
    method: 'post',
    data: data
  })
}

// 修改优惠券套餐
export function updatePlatformCoupon(data) {
  return request({
    url: '/merchant/platformCoupon',
    method: 'put',
    data: data
  })
}

// 删除优惠券套餐
export function delPlatformCoupon(id) {
  return request({
    url: '/merchant/platformCoupon/' + id,
    method: 'delete'
  })
}
